package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailMapper {

    /**
     * 批量插入订单详情数据
     *
     * @param list 订单详情集合
     */
    void insertBatch(List<OrderDetail> list);


    @Select("SELECT *FROM order_detail where order_id = #{orderId}")
    List<OrderDetail> selectByOrderId(Long orderId);
}
